package com.cu.employmentmanagementsystem.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cu.employmentmanagementsystem.dto.UserDTO;
import com.cu.employmentmanagementsystem.entity.User;

/**
 * @author 25853
 * @description 针对表【user】的数据库操作Service
 * @createDate 2024-07-01 13:20:17
 */
public interface UserService extends IService<User>
{

    Boolean register(UserDTO userDTO);

    Boolean update(UserDTO userDTO);

    Boolean delete(User user);

    SaTokenInfo loginByValidCode(String validCode);

    UserDTO getUserInfo();

    SaTokenInfo loginByPassword(User user);

    User getUserInfoByAccount(String userAccount);

    boolean checkUserExist(User user);

    Integer getFlowIndex();
}
